/*
 * Command.hpp
 *
 *  Created on: Jun 15, 2016
 *      Author: Yang
 */

#ifndef COMMAND_HPP_
#define COMMAND_HPP_

#include "FreeRTOS.h"
#include "task.h"
#include "Hal/HAL.hpp"

#define TASK_NNUMBER 5
#define MAX_COMMAND_LEN   25
#define MAX_COMMAND_NUM   20

typedef struct
{
    char const *cmd[MAX_COMMAND_LEN];
    uint8_t const len = 0;
}Command_list;

void Command_Task_Init(float fre);
void Command_Task_Loop(void *pvParameters);

#endif /* COMMAND_HPP_ */
